﻿/**
 * List of configuration variables
 * 
 */

//Size
var areaW:Number = 2000;// width of the are where avatars can move
var areaH:Number = 2000;// hieght of the are where avatars can move
var avatarW:Number = 167;// width of the avatar
var avatarH:Number = 171;// height of the avatar
var colonyW:Number = 200;
var colonyH:Number = 200;

//Location
var initialDistanceFromColony:Number = 200;//The random initial location of ant doesn't exceed this distance

var locX:Number = Stage.width/2;//relative X location of ant
var locY:Number = Stage.height/2;//relative Y locaiton of ant

var colony_red_x:Number=0;//x position of red colony
var colony_blue_x:Number=areaW-500;//x position of blue colony
var colony_red_y:Number=1000;//y position of red colony
var colony_blue_y:Number=1000;//y position of blue colony


//Food
var maximumSpeed:Number = NORMAL_MAX_SPEED;//speed without any food
var decreasedSpeedForFood:Number = 1;//the amount of decreased speed per food item
var foodInGame:Number = 20;//number of food items in the game
var minDistance2GrabFood:Number = 10000;
var maxCarriedFood:Number = 3;//maximum number of food item each ant can carry

//Description
var ANT_TYPE_BLUE:String = "0";
var ANT_TYPE_RED:String = "1";

//MISC.
var SCALE:Number = 75;

//sensing stuff
var FOOD_PREFIX:String = "Food_Elem_";
var ANT_PREFIX:String = "Ant_Elem_";

var MAX_ITEMS:Number = 4;
var MAX_SENSING_DISTANCE:Number = 1000;
var MIN_SENSING_DISTANCE:Number = 180;

var RED_COLOR:Number = 0xCC0000;
var BLUE_COLOR:Number = 0x0000FF;

var RING_RADIUS:Number = 180;
var RING_NAME:String = "Ring";

var SENSING_ALPHA:Number = 100;

//for setting the sensing layers
var MINIMUM_SCALING:Number = .3;

//for food slot
var SLOT_PREFIX:String = "slot";
var SLOT_POSTFIX:String = "_mc";
var SLOT_FULL_NAME:String= "Filler";

//layer start values for avatar
var GROUND_FOOD_LAYER_START:Number = 100;
var GROUND_PLAYER_LAYER_START:Number = 200;
var ANT_LAYER_START:Number = 800;
var FOOD_LAYER_START:Number = 850;
var HOMING_LAYER:Number = 900;

//for scoring UI
var CHIT_X_DISTANCE:Number = 11.25;
var CHIT_STARTING_DISTANCE:Number = 3.15;
var CHIT_Y_DISTANCE:Number = 7;
var RED_CHIT_NAME:String = "Red_Chit_";
var BLUE_CHIT_NAME:String = "Blue_Chit_";
var RED_CHIT_LAYER_START:Number = 50;
var BLUE_CHIT_LAYER_START:Number = 100;

//scoring
var WINNING_SCORE:Number = 10;
var SCRAMBLE_DIFFERENCE:Number = 3;
var SCRAMBLE_MAX_SPEED:Number = 10;
var NORMAL_MAX_SPEED:Number = 7;

var SUSEREXT:String = "suser";